export class STANZA_ERROR {
    constructor(public code:string,public type:string,public cond:string) {
        
    }
}

export const ERR_BAD_REQUEST = new STANZA_ERROR("400", "modify", "bad-request");
export const  ERR_CONFLICT = new STANZA_ERROR("409", "cancel", "conflict");
export const ERR_FEATURE_NOT_IMPLEMENTED = new STANZA_ERROR("501", "cancel", "feature-not-implemented");
export const ERR_FORBIDDEN = new STANZA_ERROR("403", "auth",   "forbidden");
export const ERR_GONE = new STANZA_ERROR("302", "modify", "gone");
export const ERR_INTERNAL_SERVER_ERROR = new STANZA_ERROR("500", "wait",   "internal-server-error");
export const ERR_ITEM_NOT_FOUND = new STANZA_ERROR("404", "cancel", "item-not-found");
export const ERR_JID_MALFORMED = new STANZA_ERROR("400", "modify", "jid-malformed");
export const ERR_NOT_ACCEPTABLE = new STANZA_ERROR("406", "modify", "not-acceptable");
export const ERR_NOT_ALLOWED = new STANZA_ERROR("405", "cancel", "not-allowed");
export const ERR_NOT_AUTHORIZED = new STANZA_ERROR("401", "auth",   "not-authorized");
export const ERR_PAYMENT_REQUIRED = new STANZA_ERROR("402", "auth",   "payment-required");
export const ERR_RECIPIENT_UNAVAILABLE = new STANZA_ERROR("404", "wait",   "recipient-unavailable");
export const ERR_REDIRECT = new STANZA_ERROR("302", "modify", "redirect");
export const ERR_REGISTRATION_REQUIRED = new STANZA_ERROR("407", "auth",   "registration-required");
export const ERR_REMOTE_SERVER_NOT_FOUND = new STANZA_ERROR("404", "cancel", "remote-server-not-found");
export const ERR_REMOTE_SERVER_TIMEOUT = new STANZA_ERROR("504", "wait",   "remote-server-timeout");
export const ERR_RESOURCE_CONSTRAINT = new STANZA_ERROR("500", "wait",   "resource-constraint");
export const ERR_SERVICE_UNAVAILABLE = new STANZA_ERROR("503", "cancel", "service-unavailable");
export const ERR_SUBSCRIPTION_REQUIRED = new STANZA_ERROR("407", "auth",   "subscription-required");
export const ERR_UNEXPECTED_REQUEST = new STANZA_ERROR("400", "wait",   "unexpected-request");